<?php echo $this->Form->create("Product"); ?>

<table id="tabla">
    <thead>
        <tr>
            <th></th>
            <th>Valor</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Nombre :</td>
            <td><?php echo $this->data['Product']['nombre']; ?></td>
        </tr>
        <tr>
            <td>Tipo :</td>
            <td><?php echo $this->data['Product']['tipo']; ?></td>
        </tr>
        <tr>
            <td>Proveedor :</td>
            <td><?php echo $this->data['Product']['proveedor']; ?></td>
        </tr>
        <tr>
            <td>Teléfono proveedor :</td>
            <td><?php echo $this->data['Product']['telefono_proveedor']; ?></td>
        </tr>
        <tr>
            <td>Unidad :</td>
            <td><?php echo $this->data['Product']['unidad']; ?></td>
        </tr>
        <tr>
            <td>Cantidad :</td>
            <td><?php echo $this->data['Product']['cantidad']; ?></td>
        </tr>
        <tr>
            <td>Valor cotización :</td>
            <td><?php echo $this->data['Product']['valor_total']; ?></td>
        </tr>
    </tbody>
</table>
<br />
<br />
<?php echo $this->Form->input('Product.valor_real', array('label' => 'Valor real total')); ?>
<?php echo $this->Form->input('Product.fecha_compra', array('label' => 'Fecha de compra', 'class' => 'calendario', 'type' => 'text')); ?>
<?php echo $this->Form->hidden('Product.purchasing_committee_id'); ?>
<?php echo $this->Form->hidden('Product.id'); ?>
<?php
echo $ajax->submit('Guardar', array('url' => array('controller' => 'Products', 'action' => 'edit_ejecucion', $this->data['Product']['purchasing_committee_id']), 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'));
echo $this->Form->end();
?>
<br>
<br>
<?php echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'Products', 'action' => 'index_ejecucion', $this->data['Product']['purchasing_committee_id']), array('update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?>